﻿using System.Collections.ObjectModel;
using Coniometer.Model;
using Prism.Mvvm;

namespace Coniometer.ViewModels
{
    public class TaskPageViewModel : BindableBase
    {
        private ObservableCollection<TaskModel> _taskCollection = new ObservableCollection<TaskModel>();

        public ObservableCollection<TaskModel> TaskCollection
        {
            get => _taskCollection;
            set
            {
                _taskCollection = value;
                RaisePropertyChanged();
            }
        }

        public TaskPageViewModel()
        {
            for (var i = 1; i < 15; i++)
            {
                var task = new TaskModel
                {
                    Time = "17点55分",
                    TaskState = i % 2 != 0,
                    TaskDate = "周一、周二、周三、周四、周五、周六",
                    AreaScheme = "空间方案123",
                    SimpleScheme = "采样方案123",
                    CreateTime = "2025年7月12日 17点56分",
                    Operator = "skdfhsi"
                };
                TaskCollection.Add(task);
            }
        }
    }
}